<!-- 存放手机商品卡片的容器 -->
<template>
  <div class="phonebrickrowbox">
    <div class="boxhead">
      <h2>手机</h2>
      <div class="more">
        <a href="#"
          >查看更多<i class="iconfont icon-youjiantou-tianchong"></i
        ></a>
      </div>
    </div>
    <div class="prodcardcontent clearfix">
      <div class="left">
        <img src="@/assets/img/picture/mi11.jpeg" alt="小米11" />
      </div>
      <div class="right">
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
        <prod-card class="prodcard">
          <img
            slot="prodimg"
            src="@/assets/img/picture/xiaomi10s.jpg"
            alt=""
          />
          <p slot="prodname">小米10s</p>
          <p slot="proddesc" class="proddesc">骁龙870 | 对称式双扬立体声</p>
          <p slot="prodprice" class="price">
            <span>3200</span>元<span>起</span>
          </p>
        </prod-card>
      </div>
    </div>
  </div>
</template>

<script>
import prodCard from "@/components/body/prodCard";
export default {
  data() {
    return {};
  },
  components: {
    prodCard,
  },
};
</script>

<style lang='less' >
.phonebrickrowbox {
  width: 1226px;
  height: 686px;
  // background-color: sandybrown;
  .boxhead {
    width: 1226px;
    height: 58px;
    line-height: 58px;
    // background-color: seagreen;
    h2 {
      float: left;
      font-size: 22px;
    }
    .more {
      float: right;
      height: 58px;
      font: 16px;
      .icon-youjiantou-tianchong {
        padding-left: 6px;
      }
    }
  }
  .prodcardcontent {
    width: 1226px;
    height: 628px;
    .left {
      float: left;
      width: 234px;
      height: 614px;
      transition: all 0.3s;
      img {
        width: 234px;
        height: 614px;
      }
      &:hover {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        transform: scale(1.008);
      }
    }
    .right {
      float: right;
      width: 992px;
      height: 628px;
      .prodcard {
        float: left;
        transition: all 0.3s;
        img {
          width: 160px;
          height: 160px;
        }
        &:hover {
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
          transform: scale(1.03);
        }
        h3 {
          font-size: 14px;
          font-weight: 400;
        }
        .proddesc {
          margin: 0 10px 10px;
          height: 18px;
          font-size: 12px;
          color: #b0b0b0;
        }
        .price {
          margin: 0 10px 10px;
          text-align: center;
          color: #ff6700;
        }
      }
    }
  }
}
</style>
